-- GENERATED SPELL FOR [Defias Pirate] --


function spell0_657(pUnit, Event) --@Bloodsail Companion,Self--
pUnit:FullCastSpellOnTarget(5172,pUnit)
pUnit:RegisterEvent('Sorts_657', 582, 1)
end

function Sorts_657(pUnit, Event)
local choix_sorts_657 = math.random(0, 0)
if choix_sorts_657 == 0 then
pUnit:RegisterEvent('spell0_657', 1, 1)
end
end

function mob657_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_657', math.random(1500, 3000), 1)
end

function mob657_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob657_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob657_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(657, 1, 'mob657_Action')
RegisterUnitEvent(657, 2, 'mob657_Leave')
RegisterUnitEvent(657, 3, 'mob657_Kill')
RegisterUnitEvent(657, 4, 'mob657_Die')
